#define _CRT_SECURE_NO_WARNINGS

#include "Stack.h"

void test()
{
	Stack stack = { NULL,NULL,0 };
	StackInit(&stack);

	StackPush(&stack,1);
	StackPush(&stack,2);
	StackPush(&stack,3);
	StackPush(&stack,4);
	StackPush(&stack,5);
	StackPop(&stack);
	
	printf("%d\n", StackSize(&stack));
	while (!StackEmpty(&stack))
	{
		printf("%d\n", StackTop(&stack));
		StackPop(&stack);
	}
	printf("%d\n", StackSize(&stack));
}

int main()
{
	test();

	return 0;
}